.class Lcom/waiqin365/lightapp/visit/d;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/widget/AdapterView$OnItemClickListener;


# instance fields
.field final synthetic a:Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;


# direct methods
.method constructor <init>(Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;)V
    .locals 0

    iput-object p1, p0, Lcom/waiqin365/lightapp/visit/d;->a:Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public onItemClick(Landroid/widget/AdapterView;Landroid/view/View;IJ)V
    .locals 3

    const v0, 0x7f0c0c49

    invoke-virtual {p2, v0}, Landroid/view/View;->findViewById(I)Landroid/view/View;

    move-result-object v0

    check-cast v0, Landroid/widget/ImageView;

    const v1, 0x7f020129

    invoke-virtual {v0, v1}, Landroid/widget/ImageView;->setImageResource(I)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/d;->a:Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;

    invoke-static {v0}, Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;->c(Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;)Ljava/util/ArrayList;

    move-result-object v0

    add-int/lit8 v1, p3, -0x1

    invoke-virtual {v0, v1}, Ljava/util/ArrayList;->get(I)Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/waiqin365/lightapp/visit/b/a;

    new-instance v1, Landroid/content/Intent;

    invoke-direct {v1}, Landroid/content/Intent;-><init>()V

    const-string/jumbo v2, "selectItem"

    invoke-virtual {v1, v2, v0}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/io/Serializable;)Landroid/content/Intent;

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/d;->a:Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;

    const/16 v2, 0xd9

    invoke-virtual {v0, v2, v1}, Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;->setResult(ILandroid/content/Intent;)V

    iget-object v0, p0, Lcom/waiqin365/lightapp/visit/d;->a:Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;

    invoke-virtual {v0}, Lcom/waiqin365/lightapp/visit/ChildFormSearchActivity;->finish()V

    return-void
.end method
